Bugfixes for `customize-create-theme'.
authorChong Yidong <cyd@stupidchicken.com>
Sat, 16 Oct 2010 00:16:34 +0000 (20:16 -0400)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 16 Oct 2010 00:16:34 +0000 (20:16 -0400)
commitd2f9d21d8b3bff24031ba77d485fa0998bea3f25
tree3001dbdaa84c6f10063fde7454b51bb58757b52f
parentd724821a8c3c52da88dcd2360bba701273d85fc7
Bugfixes for `customize-create-theme'.

* cus-theme.el (customize-create-theme): Delete overlays after
erasing.  If given a THEME arg, display only the faces of that arg
instead of custom-theme--listed-faces.
(custom-theme-variable-menu, custom-theme-variable-action)
(custom-variable-reset-theme, custom-theme-delete-variable): Deleted.
(custom-theme-add-variable, custom-theme-add-face): Apply value
from the theme settings, instead of the current value.
(custom-theme-add-var-1, custom-theme-add-face-1): New functions.
(custom-theme-visit-theme): Allow calling outside theme buffers.
(custom-theme-merge-theme): Don't enable the theme when merging.
(custom-theme-write-variables, custom-theme-write-faces): Use the
:shown-value properties to save buffer values, not global ones.
(customize-themes): Display a warning about user customizations.

* cus-edit.el (custom-variable-value-create)
(custom-face-value-create): Obey new special properties
:shown-value and :inhibit-magic.
lisp/ChangeLog
lisp/cus-edit.el
lisp/cus-theme.el